#pragma once
#include <qtgui\QMainWindow>
#include "cv.h"
class CSimpleImageWindow:
	public QMainWindow
{
public:
	CSimpleImageWindow(void);
	void setImage(IplImage* image)
	{ 
		currentImage_ = image ;
		resize(currentImage_->width,currentImage_->height);
		repaint();
	}
protected:
	void paintEvent(QPaintEvent *event);
public:
	~CSimpleImageWindow(void);

private:
	IplImage* currentImage_;
};
